.PHONY:all
all:clientcal servecal

lib=-ljsoncpp
Define=#-DMyself=1

clientcal:clientcal.cc
	g++ -o $@ $^ -std=c++11 $(lib) $(Define)
servecal:servecal.cc
	g++ -o $@ $^ -std=c++11 $(lib) $(Define)

.PHONY:clean
clean:
	rm -f clientcal servecal
	